PaymentPlugins\WooCommerce\PPCP\PaymentResult S

Total Complexity 32
Dependencies 5
Dependents 5
Total lines 192
Lines of code 104
Logical lines of code 41
Comment lines 41
Methods 20
Properties 8

Methods 20

Method Rating Maintainability Complexity Lines of code
needs_approval()
S
66 6 8
initialize()
S
58 4 16
get_failure_response()
S
59 2 15
get_approval_url()
S
66 2 8
already_authorized()
S
78 2 3
already_captured()
S
78 2 3
set_paypal_order_id()
S
81 1 3
is_production()
S
80 1 3
get_success_response()
S
70 1 6
get_approval_response()
S
68 1 7
__construct()
S
73 1 5
set_error_message()
S
81 1 3
get_paypal_order()
S
82 1 3
get_error_message()
S
82 1 3
get_authorization_id()
S
80 1 3
get_capture()
S
80 1 3
get_capture_id()
S
80 1 3
is_captured()
S
80 1 3
success()
S
82 1 3
set_environment()
S
81 1 3